import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '',
    name: 'page',
    redirect: '/drugPage',
  },
  {
    path: '/drugPage',
    name: 'drugPage',
    component: () => import('../views/drugPage.vue'),
    meta: {
      name: '购药首页',
    },
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
